<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

Route::domain('www',function (){

    Route::get('search-[:word]-[:page]','category/search');
    Route::get('api/category_list','api/category_list');
    Route::post('api/add','api/add');

    Route::get('c-:top_id-[:sub_id]-[:page]','category/index');
    Route::get('zy-:item_id','article/index');
    Route::get('login/callback/[:type]','user/callback');
    Route::post('login/send_code','index/send_code');
    Route::get('api/cid_article_list','index/cid_article_list');
    Route::get('sitemap.xml','index/sitemap');
    Route::rule('vip','index/vip');
    Route::post('download','index/download');
    Route::get('help/[:help_id]','help/index');

    Route::rule('user/index','user/index');
    Route::rule('user/logout','user/logout');
    Route::rule('user/login','user/login');
    Route::rule('user/document','user/document');
    Route::rule('user/bind','user/bind');
    Route::rule('user/info','user/info');
    Route::rule('user/real','user/real');
    Route::rule('user/order','user/order');
    Route::rule('user/download','user/download');
    Route::get('join_platform','index/join_platform');

    Route::post('wechat/callback','wechat/index');
    Route::rule('user/get_login_qrcode','index/get_login_qrcode');
    Route::post('user/check_weixin_login','index/check_weixin_login');

    Route::get('notify/wxpay','notify/wxpay');
    Route::get('notify/alipay','notify/alipay');

// 创建订单
    Route::post('order/create','order/create');
});

return [];
